package main

import "fmt"

func main() {
	/*
		特殊常量，iota 每次会自增1
	*/

	const ( //每一组都是独立的
		a = iota
		b = iota
		c = iota
		d = iota
	)

	fmt.Println(a, b, c, d) // 0 1 2 3

	const (
		e = iota
		f
	)

	fmt.Println(e, f) //0 1

	const (
		a1 = iota
		a2
		a3
		a4
	)

	fmt.Println(a1, a2, a3, a4)

	const (
		b1 = iota
		b2 = "haha"
		b3 = true
		b4 = iota //3
		b5        //4
		b6
		b7
	)
	fmt.Println(b1, b2, b3, b4, b5, b6, b7)
}
